#ifndef _CLASS_CVECTOR2
#define _CLASS_CVECTOR2

#include <iostream>

using namespace std;

class CVector2{
    public:
        double			x;
        double			y;
        
		CVector2						();
        CVector2						(double, double);
		CVector2						(const CVector2 &);
		~CVector2						();

        CVector2 &		operator=		(const CVector2 &);
        bool			operator==		(const CVector2 &) const;
        CVector2		operator+		(const CVector2 &) const;
        CVector2		operator*		(const double) const;
        double			operator*		(const CVector2 &) const;

		void			Normalize		();
        double			Length			();

		friend CVector2 operator*		(const double, const CVector2 &);
};

CVector2 operator*(const double, const CVector2 &);

#endif
